<!DOCTYPE html>
<html>
<head>
    <base href="../"/>
    <meta charset="UTF-8">
    <title>Basic DataGrid - jQuery EasyUI Demo</title>
    <link rel="stylesheet" type="text/css" href="component/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="component/easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="css/app.css">
    <script type="text/javascript" src="component/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="component/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="component/easyui/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="js/config.js"></script>
</head>
<body class="easyui-layout" fit="true">
<form id="setting_message_template_form" method="post" style="padding: 20px;">
    <div style="margin-bottom:20px">
        <input class="easyui-textbox" name="shangZhuangMessage" style="width:100%;height:350px"
               data-options="label:'上庄消息模板',labelPosition:'top',multiline:true">
    </div>
    <div style="margin-bottom:20px">
        <input class="easyui-textbox" name="calculateMessage" style="width:100%;height:350px;"
               data-options="label:'结算消息模板',labelPosition:'top',multiline:true">
    </div>
</form>
<script>
    $(document).ready(function () {
        $.get(baseUrl + "/message/settings.do", function (data, textStatus, jqXHR) {
            $('#setting_message_template_form').form('load', data);
            $('#setting_message_template_form').form({
                url: baseUrl + '/message/settingsSave.do',
                onSubmit: function () {

                },
                success: function (data) {
                    $('#setting_message_template_form').form('load', data);
                }
            });
        }, "json");
    });
</script>
</body>
</html>